package com.xbell.app.sys.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xbell.app.sys.common.ResponseMessage;

@RestController
@RequestMapping(value="log")
public class LogController {
	
	Logger logger = LoggerFactory.getLogger(getClass());
	
	@GetMapping(value="lev")
	public ResponseMessage<Object> lev(){
		logger.trace("this is trace");
		logger.debug("this is debug");
		logger.error("this is error");
		return ResponseMessage.ok("lev");
		
	}
}
